package com.blb.controller;

import com.blb.pojo.ColumnManagement;
import com.blb.pojo.CompanyDetails;
import com.blb.service.CompanyDetailsService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@CrossOrigin(origins = "*")
@Api(tags = "公司详情表")
public class CompanyDetailsController {

    @Autowired
    private CompanyDetailsService companyDetailsService;
    @ApiOperation(value = "查看公司详细信息")
    @GetMapping("/companyDetails")
    public ResponseEntity<CompanyDetails> findAll(){
        CompanyDetails oneLogo = companyDetailsService.findOneLogo();
        return ResponseEntity.ok(oneLogo);
    }

}
